package cn.wildfire.chat.app.extendsion.classes;

import android.os.Parcel;
import android.os.Parcelable;

/**
*  Create by HEKE, 2019/9/28 14:52
*  TODO 单聊好友在线状态对象
*/
public class SingleFriendOnlineStatus implements Parcelable {

    public long lastLoginDt;
    public int status;

    public SingleFriendOnlineStatus() {
    }

    public SingleFriendOnlineStatus(long lastLoginDt, int status) {
        this.lastLoginDt = lastLoginDt;
        this.status = status;
    }

    protected SingleFriendOnlineStatus(Parcel in) {
        lastLoginDt = in.readLong();
        status = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(lastLoginDt);
        dest.writeInt(status);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SingleFriendOnlineStatus> CREATOR = new Creator<SingleFriendOnlineStatus>() {
        @Override
        public SingleFriendOnlineStatus createFromParcel(Parcel in) {
            return new SingleFriendOnlineStatus(in);
        }

        @Override
        public SingleFriendOnlineStatus[] newArray(int size) {
            return new SingleFriendOnlineStatus[size];
        }
    };

}
